import request from '@/utils/request'

// 章节列表
export function historyExamList(params) {
  return request({
    url: '/history/exam/list',
    method: 'get',
    params
  })
}

// 查询章节详细
export function gethistoryExam(timeId) {
  return request({
    url: '/history/exam/' + timeId,
    method: 'get'
  })
}

// 新增章节
export function addhistoryExam(data) {
  return request({
    url: '/history/exam',
    method: 'post',
    data: data
  })
}

// 修改章节
export function updatehistoryExam(data) {
  return request({
    url: '/history/exam',
    method: 'put',
    data: data
  })
}

// 删除章节
export function delhistoryExam(timeId) {
  return request({
    url: '/history/exam/' + timeId,
    method: 'delete'
  })
}